<?php

namespace xyb2b\api\v1;

use xyb2b\Request;

class Link extends Request
{
    //获取sku库存
    public function get_sku_stocknum_v2(array $data=[]){
        $this->msgType=  __FUNCTION__;

        $this->content['biz_content'] = $data; // 自动将 data 作为 biz_content
        return $this->exec();
    }

    //获取商品分类
    public function get_product_category_v2(array $data=[]){
        $this->msgType=  __FUNCTION__;

        $this->content['biz_content'] = $data; // 自动将 data 作为 biz_content
        return $this->exec();
    }

    //获取商品列表
    public function get_product_list_v2(array $data=[]){
        $this->msgType=  __FUNCTION__;

        $this->content['biz_content'] = $data; // 自动将 data 作为 biz_content
        return $this->exec();
    }

    //运费计算
    public function calculate_shipping_fee_v2(array $data=[]){
        $this->msgType=  __FUNCTION__;

        $this->content['biz_content'] = $data; // 自动将 data 作为 biz_content
        return $this->exec();
    }

    //商品详情
    public function get_product_detail_v2(array $data=[]){
        $this->msgType=  __FUNCTION__;

        $this->content['biz_content'] = $data; // 自动将 data 作为 biz_content
        return $this->exec();
    }

    //订单生成
    public function add_custom_order_v2(array $data=[]){
        $this->msgType=  __FUNCTION__;

        $this->content['biz_content'] = $data; // 自动将 data 作为 biz_content
        return $this->exec();
    }

    //查询订单状态
    public function query_order_v2(array $data=[]){
        $this->msgType=  __FUNCTION__;

        $this->content['biz_content'] = $data; // 自动将 data 作为 biz_content
        return $this->exec();
    }

    //查询sku税率
    public function query_sku_tax_info_v2(array $data=[]){
        $this->msgType=  __FUNCTION__;

        $this->content['biz_content'] = $data; // 自动将 data 作为 biz_content
        return $this->exec();
    }
}